package com.vhall.component.service.lottery.delay;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.DelayQueue;

/**
 * @author jingwen.li
 */
@Configuration
public class LotteryDelayEventQueueConfig {


    @Bean("lotteryDelayQueue")
    public DelayQueue<LotteryDelayEvent> orderDelayQueue(){
        return new DelayQueue<LotteryDelayEvent>();
    }
}
